package com.autobet;

import com.autobet.services.EnvConfigService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.ComponentScan;

@ComponentScan({"com.autobet.controller", "com.autobet.dao", "com.autobet.services"})
@SpringBootApplication
public class AutobetApplication {

//	public static void main(String[] args) {
//		SpringApplication.run(AutobetApplication.class, args);
//	}
    private static final Logger log = LoggerFactory.getLogger(AutobetApplication.class);

    public AutobetApplication() {
    }

    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(AutobetApplication.class, args);
        EnvConfigService.setApplicationContext(applicationContext);
        log.info("自动投注系统启动完毕.................................祝君发财!");
    }
}
